package org.myself.meeting.mapper;

import org.apache.ibatis.annotations.Param;
import org.myself.meeting.model.Meeting;

import java.util.Date;
import java.util.List;

public interface MeetingMapper {
    Integer addMeeting(Meeting meeting);

    void addParticipants(@Param("meetingid") Integer meetingid, @Param("mps") Integer[] mps);

    long getTotal(Integer status);

    List<Meeting> getAllmeetings(@Param("page")Integer page, @Param("pagesize")Integer pagesize,@Param("status")Integer status);

    Meeting getMetByIdSTATUS(@Param("meetingid")Integer id,@Param("status")Integer status);

    List<Meeting> getMyMetByme(@Param("employeeid") Integer employeeid,@Param("status") Integer status);

    Integer updateDesStatus(@Param("description")String description,@Param("status")Integer metstatus,@Param("meetingid")Integer id,@Param("canceledtime") Date dd);

    Integer updateMetStatus(@Param("meetingid")Integer meetingid,@Param("status")Integer status);

    Meeting getMetById(Integer meetingid);

    List<Meeting> getAllmeetingsAdmin();

    Integer deleteMetById(Integer meetingid);

    List<Meeting> getMeetingsByName(@Param("page")Integer page, @Param("pagesize")Integer pagesize,@Param("status")Integer status,@Param("meetingname") String meetingname);

    long getNameTotal(@Param("status")Integer status, @Param("name") String name);

    Integer deletemeeting(Integer roomid);
}
